package com.ruoyi.eam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eam.mapper.EamManageDMapper;
import com.ruoyi.eam.doman.EamManageD;
import com.ruoyi.eam.service.IEamManageDService;

/**
 * 资产记录从Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-19
 */
@Service
public class EamManageDServiceImpl implements IEamManageDService
{
    @Autowired
    private EamManageDMapper eamManageDMapper;

    /**
     * 查询资产记录从
     * 
     * @param assetId 资产记录从主键
     * @return 资产记录从
     */
    @Override
    public EamManageD selectEamManageDByAssetId(Long assetId)
    {
        return eamManageDMapper.selectEamManageDByAssetId(assetId);
    }

    /**
     * 查询资产记录从列表
     * 
     * @param eamManageD 资产记录从
     * @return 资产记录从
     */
    @Override
    public List<EamManageD> selectEamManageDList(EamManageD eamManageD)
    {
        return eamManageDMapper.selectEamManageDList(eamManageD);
    }

    /**
     * 新增资产记录从
     * 
     * @param eamManageD 资产记录从
     * @return 结果
     */
    @Override
    public int insertEamManageD(EamManageD eamManageD)
    {
        return eamManageDMapper.insertEamManageD(eamManageD);
    }

    /**
     * 修改资产记录从
     * 
     * @param eamManageD 资产记录从
     * @return 结果
     */
    @Override
    public int updateEamManageD(EamManageD eamManageD)
    {
        return eamManageDMapper.updateEamManageD(eamManageD);
    }

    /**
     * 批量删除资产记录从
     * 
     * @param assetIds 需要删除的资产记录从主键
     * @return 结果
     */
    @Override
    public int deleteEamManageDByAssetIds(String[] manageId)
    {
        return eamManageDMapper.deleteEamManageDByAssetIds(manageId);
    }

    /**
     * 删除资产记录从信息
     * 
     * @param assetId 资产记录从主键
     * @return 结果
     */
    @Override
    public int deleteEamManageDByAssetId(Long assetId)
    {
        return eamManageDMapper.deleteEamManageDByAssetId(assetId);
    }

    @Override
    public EamManageD selectEamManageDByManageId(String manageId) {
        return eamManageDMapper.selectEamManageDByManageId(manageId);
    }

    @Override
    public int updateDelEamD(String[] manageIds) {
        return eamManageDMapper.updateDelEamD(manageIds);
    }
}
